package com.lottery.common.entity;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableName;
    import com.lottery.common.model.BaseModel;
    import com.baomidou.mybatisplus.annotation.TableId;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;

/**
* <p>
    * 角色权限关系表
    * </p>
*
* @author jobob
* @since 2019-09-23
*/
    @Data
    @TableName("re_permission_roles")
    public class PermissionRoles  {

    private static final long serialVersionUID = 1L;

            /**
            * 角色权限关系表
            */
            @TableId(value = "pk_id", type = IdType.AUTO)
    private Integer pkId;

            /**
            * 角色ID
            */
    private Integer roleId;

            /**
            * 权限ID
            */
    private Integer permissionId;

    public PermissionRoles() {
    }

    public PermissionRoles(Integer roleId, Integer permissionId) {
        this.roleId = roleId;
        this.permissionId = permissionId;
    }
}
